package cn.com.gaobb.exception;

/**
 * Created by codedrinker on 2019/5/28.
 */
public enum CustomizeErrorCode implements ICustomizeErrorCode {

    HET_LIST_FAIL(2001, "获取列表失败"),
    NO_TOKEN(2002,"获取token失败，请重新登录"),
    TOKEN_EXPIRE(2003,"登录过期,请重新登录")
    ;

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    private Integer code;
    private String message;

    CustomizeErrorCode(Integer code, String message) {
        this.message = message;
        this.code = code;
    }
}
